<template>
  <div>
    <h1>News的子组件</h1>
    name:{{ name }} price:{{ price }}
  </div>
</template>

<script>
  export default {
    name: "Item",
    props: ["a", "b", "name", "price"],

    mounted() {
      // // console.log("News Mounted");
      // const { name, price } = this.$route.params;
      // this.name = name;
      // this.price = price;

      console.log(this.a, this.b, "a,b");
      console.log(this.name, this.price);
    },
  };
</script>

<style></style>
